import java.util.Scanner;

public class Zuo {
	public static void main (String[] args) {
		Scanner sc=new Scanner(System.in);
		System.out.println("请输入数字");
		int num=sc.nextInt();
		int bai=num/100;
		int shi=num/10%10;
		int ge=num%10;
        System.out.println(bai*bai*bai+shi*shi*shi+ge*ge*ge==num);
		System.out.println(num==(Math.pow(bai, 3)+Math.pow(shi, 3)+Math.pow(ge, 3)));
	}
}
